package cn.edu.nuc.fourth.services.interfaces;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import cn.edu.nuc.fourth.dto.PageInfo;
import cn.edu.nuc.fourth.model.Announce;
import cn.edu.nuc.fourth.model.Aproject;

public interface AdminService {

	/**
	 * 公告分页
	 * 
	 * @param current
	 * @return
	 */
	public PageInfo announceList(Integer current);

	/**
	 * 公告添加
	 * 
	 * @param announce
	 * @return
	 */
	public Integer announceadd(Announce announce);

	/**
	 * 初始化一条数据
	 * 
	 * @param aid
	 * @return
	 */
	public Announce oneAnno(Integer aid);

	/**
	 * 修改
	 * 
	 * @param aid
	 * @return
	 */
	public Integer announceedit(Announce announce);

	/**
	 * 公告填状态
	 * 
	 * @param aid
	 * @param astate
	 * @return
	 */
	public Integer stateeidt(Announce announce);

	/**
	 * 滚动条公告
	 * 
	 * @param astate
	 * @return
	 */
	public List<Announce> ajaxlist(Integer astate);

	/**
	 * 上传
	 * 
	 * @param main
	 * @param province
	 * @param city
	 * @param onther
	 * @param path
	 * @return
	 */
	public Integer upload(MultipartFile main, MultipartFile province, MultipartFile city, MultipartFile onther,
			String path);

	/**
	 * 项目分页
	 * 
	 * @return
	 */
	public PageInfo projectlist(Integer current);

	/**
	 * 删除项目文件
	 * 
	 * @param aproject
	 * @return
	 */
	public Integer projectdelete(Aproject aproject);
	/**
	 * 查询
	 * @return
	 */
	public PageInfo find(String date);
}
